<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" id="formAdd">
                <input type="hidden" name="id" value="${data.id}">
                <div class="layui-form-item">
                    <label class="layui-form-label">权限名称</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input newsName" placeholder="请输入权限名称" lay-verType="tips"
                               lay-verify="required" name="name" value="${data.name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">权限标识</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input newsName" placeholder="请输入权限标识" lay-verType="tips"
                               lay-verify="required" name="sign" value="${data.sign}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">权限描述</label>
                    <div class="layui-input-block">
                        <textarea name="description" placeholder="请输入权限描述" class="layui-textarea">${data.description}</textarea>
                    </div>
                </div>
                <input type="hidden" lay-submit=""
                       <@shiro.hasPermission name="core/permission/index:add or core/permission/index:update">
                        lay-filter="modifyData"
                       </@shiro.hasPermission> id="btnAdd"/>
            </form>
        </div>
    </div>
</div>
<script>
    layui.config ({
        base: '/static/' //静态资源所在路径
    }).extend ({
        index: 'lib/index' //主入口模块
    }).use (['index', 'core/permission_modify']);
</script>